package com.qfedu.edu.constance;

/**
 * @author xiaobobo
 * @title: DeviceConstance
 * @projectName cd-fy-2401-third-project-parent
 * @description: 设备的常量类
 * @date 2024/9/25  9:14
 */
public class DeviceConstance {

    //设备key的前缀
    private static final String DEVICE_PREFIX = "device_";

    //应用程序发送指令的这个主题前缀
    private static final String APP_CONTROL_HARDWARE_PREFIX = "/qfjava/device/ctrl/";

    //硬件向设备发送指令的主题前缀
    private static final String HARDWARE_SEND_MESSAGE_PREFIX = "/qfjava/device/data/";

    public static String getAppControlHardwarePrefix() {
        return APP_CONTROL_HARDWARE_PREFIX;
    }

    public static String getHardwareSendMessagePrefix() {
        return HARDWARE_SEND_MESSAGE_PREFIX;
    }

    public static String getDevicePrefix() {
        return DEVICE_PREFIX;
    }
}
